Golang runtime.GOROOT() function example
package runtime
Golang runtime.GOROOT() function usage example.
NOTE : There is where the Golang's source code, binary, blogs and documentations located in your machine
package main
import (
"fmt"
"runtime"
)
func main() {
fmt.Println("The GROOT says GO ROOT is at : ", runtime.GOROOT())
}
Reference :
Advertisement
Something interesting
Tutorials
+13.1k Golang : Handle or parse date string with Z suffix(RFC3339) example
+7.9k Golang : Ways to recover memory during run time.
+14.5k How to automatically restart your crashed Golang server
+32.2k Golang : Convert []string to []byte examples
+21.2k Golang : How to force compile or remove object files first before rebuild?
+19.1k Golang : Display list of time zones with GMT
+7.7k Golang : Mapping Iban to Dunging alphabets
+6.9k Mac OSX : Find large files by size
+5.2k Golang : Print instead of building pyramids
+6k Golang : Convert Chinese UTF8 characters to Pin Yin
+14.1k Golang : Check if a file exist or not
+4.8k Facebook : How to place save to Facebook button on your website